package com.hackintosh.responsibility.oa;

/**
 * @description：系主任类
 * @author：twislyn
 * @date：Created in 2021/05/20
 * @modified By：
 * @version: 1.0
 */
public class DepartmentHead extends Leader {
    @Override
    public void handlerRequest(int leaveDays) {
        if (leaveDays <= 7) {
            System.out.println("系主任批准您请假" + leaveDays + "天。");
        } else {
            if (getNext() != null) {
                getNext().handlerRequest(leaveDays);
            } else {
                System.out.println("请假天数太多，没有人批准该假条！");
            }
        }
    }
}
